package cn.assumejson.pro_netty.constant;

import cn.assumejson.pro_netty.utils.PropertyUtil;

/**
 * @author by gang.Li 2022/3/12 16:21
 */
public class Constants {
    public static final String SERVER_PATH = "/netty";
    public static int port = 8991;
    public static String zookeeperURL = "localhost:2181";
    public static int weight = 1;

    static {
        port = PropertyUtil.getInt("server.port");
        zookeeperURL = PropertyUtil.getString("zookeeper.url");
        weight = PropertyUtil.getInt("server.weight");
    }
}
